package kr.co.redcircle.console.helper;

import java.lang.reflect.Field;

import org.eclipse.swt.SWT;

public class SWTConstantHelper {

	public static Object get(String fieldName) {
		Class<?> swtConstantClass = SWT.class;
		Object valueObject = new Object();
		try {
			Field field = swtConstantClass.getField(fieldName);
			return field.get(valueObject);
		} catch (IllegalArgumentException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} catch (SecurityException e) {
			e.printStackTrace();
		} catch (NoSuchFieldException e) {
			e.printStackTrace();
		}
			
		return null;
	}

}
